<?php

namespace App\Enums;

use BenSampo\Enum\Enum;

/**
 * @method static static OptionOne()
 * @method static static OptionTwo()
 * @method static static OptionThree()
 */
final class ReceptionType extends Enum
{
    const SALE = 0;//销售
    const RETURN_VISIT = 1;//复诊部
    const RECEPTION = 2;//接待


    public static function getDescription(mixed $value): string
    {
        return match ($value) {
            self::SALE => '销售',
            self::RETURN_VISIT => '复诊',
            default => self::getKey($value),
        };
    }
}
